package utils;

import model.entity.Item;
import model.enums.ItemType;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/27 18:00
 */
public class ItemUtil {
    static Item fries = new Item("F002", "薯条", 15.0, ItemType.MAIN);
    static Item hamburger = new Item("H001", "汉堡", 15.0, ItemType.MAIN);
    static Item chickenWrap = new Item("W003", "鸡肉卷", 12.0, ItemType.MAIN);

    // 饮料类
    static Item icedCoffee = new Item("C004", "冰咖啡", 10.0, ItemType.DRINK);
    static Item cola = new Item("C005", "可乐", 8.0, ItemType.DRINK);
    static Item orangeJuice = new Item("J006", "橙汁", 9.0, ItemType.DRINK);

    // 甜品类
    static Item iceCream = new Item("D007", "冰淇淋", 6.0, ItemType.DESSERT);
    static Item cake = new Item("D008", "蛋糕", 12.0, ItemType.DESSERT);

    public static List<Item> getMenu() {
        List<Item> items = new ArrayList<>();
        items.add(fries);
        items.add(hamburger);
        items.add(chickenWrap);
        items.add(icedCoffee);
        items.add(cola);
        items.add(orangeJuice);
        items.add(iceCream);
        items.add(cake);
        return items;
    }
}
